package com.app.internationaltravel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@TableName("t_user_sign")
@NoArgsConstructor
public class UserSign {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    private Integer gold;
    private Integer exagold;
    private Integer days;
    private Date ctime;

    public UserSign(Integer uid, Integer gold, Integer exagold, Integer days) {
        this.uid = uid;
        this.gold = gold;
        this.exagold = exagold;
        this.days = days;
        this.ctime=new Date();
    }
}